<html lang="zh-cn">{include file="index/meta" /}
    
    <body class="body">
        <div>
            <div class="common-layout min-w-[1200px]">
                <section class="el-container w-100 h-screen">
                    <!--侧边栏开始-->
                    {include file="index/main" /}
                    <!--侧边栏结束-->
                    <section class="el-container is-vertical">
                        <!--顶部-->
                        {include file="index/header" /}
                        <!--顶部结束-->
                        <main class="el-main main-wrap h-full p-0">
                            <div class="el-scrollbar">
                                <div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default">
                                    <div class="el-scrollbar__view" style="">
                                        <div class="p-[10px]">
                                            <div class="main-container">
                                              <!--{include file="comment/serach" /}-->
                                               <form method="post" onsubmit="return post_del(this,'{:url('dels')}','确定要删除所选项目吗？')">
                                               <div class="el-card is-never-shadow box-card !border-none">
                                                    <div class="el-card__body" style="">
                                                        <div class="flex justify-between items-center">
                                                            <span class="text-[20px]">{:getmenuname($Request.controller)}</span>
                                                            <button  class="el-button el-button--primary w-[100px]"  type="submit">删除选中</button>
                                                            </div>
                                                            
                                                        <div class="mt-[20px]">
                                                            <div class="el-table--fit  el-table ">
                                                                <div class="el-table__inner-wrapper">
                                                                    <div class="el-table__header-wrapper">
                                                                        <table class="el-table__header">
                                                                            <thead>
                                                                                <tr class="text-c">
                                                                                <th width="45"><input class="form-check-input" type="checkbox" onclick="cz(this)" /></th>
                                                                                <th width="120">发布人</th>
                                                                                <th>评论内容</th>
                                                                                <th width="260">原文标题</th>
                                                                                <th width="135">发布时间</th>
                                                                                <th width="100">发布IP</th>
                                                                                <th width="70">审核</th></tr>
                                                                            </thead>
                                                                            <tbody>
                                                                                 {volist name="list" id="data"}
                                                                                <tr class="text-d">
                                                                                    <td><input class="form-check-input" name="fx[]" type="checkbox" value="{$data.id}"></td>
                                                                                    <td>{:get_userinfo($data.userid,'username')}</td>
                                                                                    <td>{$data.content}</td>
                                                                                    <td>{$data.title}</td>
                                                                                    <td>{:date("Y-m-d H:i:s",$data.inputtime)}</td>
                                                                                    <td>{$data.ip}</td>
                                                                                   <td>{$data.status ? ' <span class="el-tag">显示</span>': '<span class="el-tag el-tag--danger">不显示</span>'}</td></tr>
                                                                                {/volist}
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                               </form>
                                            </div>
                                           
                                        </div>
                                       {$list|raw}
                                    </div>
                                </div>
                            </div>
                        </main>
                    </section>
                </section>
            </div>
        </div>{include file="index/footer" /}</body>

</html>